Pod::Spec.new do |s|

  s.name         = "iUtil"
  s.version      = "1.0.4"
  s.summary      = "Util class collection for ios."
  s.description  = "The project contains many useful classes for ios."
  s.homepage     = "https://gitee.com/wendachuan/iUtil"
  s.license      = "GPLv2"
  s.author       = { "wendachuan" => "wendachuan@163.com" }
  s.platform     = :ios, "9.0"
  s.source       = { :git => "https://gitee.com/wendachuan/iUtil.git", :tag => "1.0.4" }
  s.requires_arc = true
  s.source_files = 'iUtil/*.{h,m,swift}'

  s.subspec 'Core' do |ss|
    ss.source_files = 'iUtil/Core/*.{h,m,swift}'
	ss.dependency 'Runtime'
  end
  
  s.subspec 'Html' do |ss|
    ss.source_files = 'iUtil/Html/*.{h,m,swift}'
    ss.subspec 'js' do |sss|
      sss.resources = "iUtil/Html/js/*.js"
    end
	ss.dependency 'iUtil/Core'
	ss.dependency 'HTMLReader', '~> 0.9.6'
  end
  
  s.subspec 'HttpHelper' do |ss|
    ss.source_files = 'iUtil/HttpHelper/*.{h,m,swift}'
	ss.dependency 'iUtil/JsonHelper'
    ss.dependency 'iUtil/Core'
	ss.dependency 'AFNetworking'
  end
  
  s.subspec 'JsonHelper' do |ss|
    ss.source_files = 'iUtil/JsonHelper/*.{h,m,swift}', 'iUtil/JsonHelper/Parser/*.{h,m,swift}'
    ss.dependency 'iUtil/Core'
  end
  
  s.subspec 'Swizzle' do |ss|
    ss.source_files = 'iUtil/Swizzle/*.{h,m,swift}'
	ss.dependency 'iUtil/Core'
  end
  
  s.subspec 'Theme' do |ss|
    ss.source_files = 'iUtil/Theme/*.{h,m,swift}', 'iUtil/Theme/UIKit/*.{h,m,swift}'
	ss.dependency 'iUtil/Core'
  end
  
end
